package com.impetus.project.skilltest.client.pages;

import com.impetus.project.skilltest.common.dataobject.Candidate;
import com.impetus.project.skilltest.common.dataobject.Question;
import com.impetus.project.skilltest.common.dataobject.ScheduledTest;

public class PageData 
{
	private Candidate user;
	private Candidate refCandidate;
	private ScheduledTest test;
	private Question question;
	
	private String lastPageLoaded ;
	private Throwable exceptionCaught;
	
	
	public Throwable getExceptionCaught() {
		return exceptionCaught;
	}
	public void setExceptionCaught(Throwable exceptionCaught) {
		this.exceptionCaught = exceptionCaught;
	}
	public String getLastPageLoaded() {
		return lastPageLoaded;
	}
	public void setLastPageLoaded(String lastPageLoaded) {
		this.lastPageLoaded = lastPageLoaded;
	}
	
	public Candidate getUser() {
		return user;
	}
	public void setUser(Candidate user) {
		this.user = user;
	}
	public Candidate getRefCandidate() {
		return refCandidate;
	}
	public void setRefCandidate(Candidate candidate) {
		this.refCandidate = candidate;
	}
	public ScheduledTest getTest() {
		return test;
	}
	public void setTest(ScheduledTest test) {
		this.test = test;
	}
	public Question getQuestion() {
		return question;
	}
	public void setQuestion(Question question) {
		this.question = question;
	}
	
	@Override
	public String toString() {
		return "PageData [refCandidate=" + refCandidate
				+ ", exceptionCaught=" + exceptionCaught + ", lastPageLoaded="
				+ lastPageLoaded + ", question=" + question + ", test=" + test
				+ ", user=" + user + "]";
	}
}
